<?php

namespace Chat\Model\Message;

use Chat\Model;

class Message extends Model\DomainModelAbstract{
	
// 	@var string	
	private $_text;	
	
// 	@var int;
	private $_userId;
	
// 	@var string
	private $_date;
	
// 	@param $text
// 	@return Message
	public function setText($text){
		$this->_text = $text;
		return $this;
	}
	
// 	@return string
	public function getText(){
		return $this->_text;
	}
	
	//@param $id
	//@return Message
	
	public function setId($id){
		$this->_id = $id;
		return $this;
	}
	
	public function setDate($date){
		$this->_date = $date;
		return $this;
	}
	
	public function getDate(){
		return $this->_date;
	}
	
	public function setUserId($id){
		$this->_userId = $id;
		return $this;
	}
	
	public function getUserId(){
		return $this->_userId;
	}
}